<template>
  <div class="goods-type">
    <el-form
      label-width="100px"
      :model="typeObj"
    >
      <el-form-item 
        v-for="(item,index) in typeList"
        :key="index"
        :label="item.name"
      >
        <el-input v-model="item.handAddStatus" style="width:205px;" v-if="item.inputList.length == 0"></el-input>
        <el-select v-else v-model="item.typeList" placeholder="请选择">
          <el-option
            v-for="(item1,index1) in item.inputList"
            :key="index1"
            :label="item1"
            :value="item1"
          > 
          </el-option>
        </el-select>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import {getAttr} from "../../api"
export default {
  name:"GoodsType",
  data() {
    return {
      typeObj:{}
    }
  },
  props:{
    typeList:Array
  },
}
</script>

<style scoped lang="less">
  .goods-type{
    background: #f8f8f8;
  }
</style>